package com.wms.mapper;

import com.github.pagehelper.Page;
import com.wms.dto.GoodsInPageQueryDTO;
import com.wms.entity.WmsGoodsin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsInMapper {
    /**
     * 分页查询
     * @param goodsInPageQueryDTO
     * @return
     */
    Page<WmsGoodsin> pageQuery(GoodsInPageQueryDTO goodsInPageQueryDTO);

    /**
     * 批量删除
     * @param ids
     */
    void delete(List<Integer> ids);

    /**
     * 新增
     * @param wmsGoodsin
     */
    void save(WmsGoodsin wmsGoodsin);

    /**
     * 修改
     * @param wmsGoodsin
     */
    void update(WmsGoodsin wmsGoodsin);

    @Select("select * from wms_goodsin where id = #{id}")
    WmsGoodsin getById(int id);
}
